package com.example.songjie.myapplication;

import android.support.v7.app.AppCompatActivity;
import android.support.annotation.Nullable;
import android.os.Bundle;

/**
 * @author 宋杰
 * @email songjie_xuan@126.com
 * @createdAt 2018-03/05 Thu 下午8:55
 *
 * com.example.songjie.myapplication
 */
public class MyActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(com.example.songjie.myapplication.R.layout.activity_my);
        //        android.widget.Button But1 = findViewById(com.example.songjie.myapplication.R.id.But1);
        //        But1.setOnClickListener(new android.view.View.OnClickListener() {
        //            @Override
        //            public void onClick(android.view.View v) {
        //            finish();
        //            }
        //        });
        android.widget.TextView tex = findViewById(com.example.songjie.myapplication.R.id.cao1);
        android.content.Intent it1=getIntent();
        Bundle bd=it1.getExtras();
        String name=bd.getString("name");
        tex.setText(name);
    }

}

